import request from '@/utils/request'


export const Login = data => {
  return request.post('/v1_0/authorizations', data)
}


export const getSmsCode = mobile => {
  return request.get(`/v1_0/sms/codes/${mobile}`)
}

export const getUserInfo = () => {
  return request.get(`/v1_0/user`)
}


export const editUserInfo = () => {
  return request.get(`/v1_0/user/profile`, )
}

export const editUser = (obj) => {
  return request.patch(`/v1_0/user/profile`,obj)
}



// 获取用户频道列表

export const channels = () => {
    return request.get(`/v1_0/user/channels`)
  }